package com.guaika.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.guaika.reggie.common.ResultMessage;
import com.guaika.reggie.entity.User;

import javax.servlet.http.HttpSession;
import java.util.Map;

/**
 * @author GuaiKa
 */
public interface UserService extends IService<User> {
    /***
     * 发送短信
     * @param user
     * @param session
     * @return
     */
    ResultMessage<String> sendMsg(User user, HttpSession session);

    /***
     * 登录
     * @param map
     * @param session
     * @return
     */
    ResultMessage<User> login(Map map, HttpSession session);
}
